<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
        <title>站长平台</title>
        <link href="/wk/res/ader&siter/css/siter&ader.css" rel="stylesheet" type="text/css" />
        <script src="/wk/res/js/jquery.js"></script>
		<script src="/wk/res/js/template.js"></script>
		<script src="/wk/res/js/tool.js"></script>
		<script src="/wk/res/js/lib.js"></script>
        <script src="/wk/res/ader&siter/js/js.js"></script>
		<script src="/wk/res/ader&siter/js/init.js"></script>
		<script src="/wk/res/ader&siter/js/app.js"></script>
		<script src="/wk/res/ader&siter/js/echarts.common.min.js"></script>
		
		
    </head>
    <body>
        <div class="main">
            <div class="top">
                <div class="top-left">
                    <img src="/wk/res/ader&siter/images/logo.jpg" />
                </div>
                
                <div class="top-right">
                    <div class="top-right-nav">
                        <a href="#"><img src="/wk/res/ader&siter/images/pic01.jpg"></a>
                        <a href="#"><img src="/wk/res/ader&siter/images/pic02.jpg"></a>
                        <a href="index.php?a=logout&f=Siter" onclick="return confirm('你确定要退出吗?')"><img src="/wk/res/ader&siter/images/pic03.jpg"></a>
                    </div>
                    <div class="top-right-user">
                        <div class="top-right-user-one"></div>
                        <div class="top-right-user-two"><span>下午好, <b><?php echo C('RUN_LOGIN_USER.name');?></b> 欢迎登录</span></div>
                        <div class="top-right-user-three"></div>
                    </div>
                </div>
            </div>
            <div class="nav">
                <div class="nav-home"><a href="siter.php"><img src="/wk/res/ader&siter/images/llzdhb_03.jpg" alt="" class="Index"></a></div>
                <div class="nav-getAd"><a href="siter.php?c=Ad"><img src="/wk/res/ader&siter/images/llzdhb_04.jpg" alt="" class="Ad"></a></div>
                <div class="nav-adManage"><a href="siter.php?c=Zone"><img src="/wk/res/ader&siter/images/llzdhb_05.jpg" alt="" class="Zone"></a></div>
                <div class="nav-data"><a href="siter.php?c=ZonePlanStats"><img src="/wk/res/ader&siter/images/llzdhb_06.jpg" alt="" class="ZonePlanStats"></a></div>
            </div>
            <div class="notice">
                <div>管理员消息：新年快乐。万事如意！发大财！</div>
            </div>

            <div class="content">
                <div class="content-title">
                    <div class="content-title-top">
                        <img src="/wk/res/ader&siter/images/dianimg.png" alt="">
                        <b>广告计划类型筛选</b>
                    </div>
                    <div class="content-title-bottom">
                        <img src="/wk/res/ader&siter/images/ganthao.png" alt="">
                        <span>当前为订单管理页面，您可以查看或取消订单！</span>
                        <a href="">< 返回</a>
                    </div>
                </div>
                <form action="?c=Zone&a=doSave" method="post" id="form1" go="siter.php?c=Zone">
                    <input type="hidden" name="id">
                   <input type="hidden" name="type">
                <div class="content-edit">
                    <div class="content-edit-title"><span><b>广告名称:</b> <input type="text" name="name"/></span> <span><b>创建时间:</b> <i><?php echo ($record["create_time"]); ?></i></span></div>
                    <div class="content-edit-type"><span><b>广告位类型:</b> <i><?php echo (strtoupper($record["type"])); ?></i> </span> <span> <b>计费类型:</b> <i><?php echo (strtoupper($record["plan_type"])); ?></i></span></div>
					<div class="content-edit-select"><b></b></div>
					<div id="plan-list-msg"></div>
					<div id="plan-list-container"></div>
                </div>
            </div>
            <div class="submit"><input type="submit" value="保存"/>&nbsp;<a href="javascript:history.back()">返回</a></div>
            </form>
			<div class="space"></div>
			<div class="foot">
				<img src="/wk/res/ader&siter/images/down_r.jpg" alt="">
			</div>
        </div>
<div id="t-plan-list" class="tpl">
{{each records as v k}}
<ul class="plan-list-row" id="plan-list-row-{{v.id}}">
	<li class="select-ad">选择广告:</li>
	<li class="plan-list-row__name"><b>广告计划：</b><i>{{v.name}}</i></li>
	<li class="plan-list-row__type"><b>计费类型：</b><i>{{v.type}}</i></li>
	<li class="plan-list-row__ad-num"><b>广告数量：</b><i>{{v.ad_num}}个</i></li>
	<li class="plan-list-row__act">展开</li>
</ul>
{{/each}}
</div> <!--/#t-plan-list-->

<textarea id="t-ad-list" class="tpl">
<ul class="ad-list-header ad-list-row">
	<li class="ad-list-row__id">广告编号</li>
	<li class="ad-list-row__title">标题</li>
	<li class="ad-list-row__img">图片</li>
	<li class="ad-list-row__act">&nbsp;</li>
</ul>
{{each records as v}}
<ul class="ad-list-row">
	<li class="ad-list-row__id">{{v.id}}</li>
	<li class="ad-list-row__title">{{v.zl_title}}</li>
	<li class="ad-list-row__img"><img src="{{v.zl_img_url}}"></li>
	<li class="ad-list-row__act"><input type="radio" name="ad_id" value="{{v.id}}"></li>
</ul>
{{/each}}
</textarea> <!--/#t-ad-list-->
<script src="/wk/res/js/lib.js"></script>
<script>
	var record = {};
	<?php if(!empty($record)): ?>record = <?php echo (json_encode($record)); ?>;<?php endif; ?>
	var model = new Model(record);
	new Form($('#form1'), model);
	$(function() {
		Zone.modify.init(model);
	})
</script>
    </body>
	<script>
$(function(){
	$('.'+'<?php echo (CONTROLLER_NAME); ?>');
})
</script>
</html>